/*
 * @Date: 2024-03-11 10:58:41
 * @Autor: 叶世超
 * @LastEditors: 叶世超 yesc163@163.com
 * @LastEditTime: 2024-04-11 16:30:37
 * @FilePath: \reslib-web\src\api\knowledge\area\index.ts
 * @Description: 描述
 * @version: 版本
 */
import request from '@/config/axios'
/* 知识图谱 */

// 数据添加
export const insertHybaseGraph = async (params) => {
  return await request.post({ url: '/knowledgeGraph/insertHybaseGraph', data: params })
}
// 数据修改
export const updateHybaseGraph = async (params) => {
  return await request.post({ url: '/knowledgeGraph/updateHybaseGraph', data: params })
}
// 列表查询
export const getGraphPage = async (params) => {
  return await request.get({ url: '/knowledgeGraph/getGraphPage', params })
}
// 数据删除
export const deleteHybaseGraph = async (params) => {
  return await request.get({ url: '/knowledgeGraph/deleteHybaseGraph/' + '?ids=' + params })
}
// 详情查询
export const getGraphById = async (params) => {
  return await request.get({ url: '/knowledgeGraph/getGraphById/' + '?id=' + params })
}
// 图书资源
export const booksData = async (id, params: PageParam) => {
  return await request.get({ url: '/meta/data/' + id + '/list', params })
}
// 步执行关系及实体提取
export const insertHybaseAndNeo4j = async (params) => {
  return await request.post({ url: '/knowledgeGraph/insertHybaseAndNeo4j', data: params })
}
// 知识图谱日志
export const getGraphLogPage = async (params) => {
  return await request.get({ url: '/knowledgeGraph/getGraphLogPage', params })
}
